﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 美妆产品管理系统
{
    public partial class SubmitCart : Form
    {
        public SubmitCart()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DB.GetCn();
            string str = "insert into Orders values('" + Login.username + "','" + DateTime.Today + "','" + txtAdd.Text + "','"
                + txtCity.Text + "','" + txtState.Text + "','" + txtZip.Text + "','" 
                + txtPhone.Text + "',null,'未审核'," + ShopCart.profit + ",null)";
            ShopCart.profit = 0;
            DB.sqlEx(str);
            MessageBox.Show("已结算，谢谢惠顾");
            this.Close();
        }

        private void SubmitCart_Load(object sender, EventArgs e)
        {

        }
    }
}
